What is NSURLConnection class in iOS?
1595
10-Jan-2017
Updated on 22-Sep-2020
Sunil Singh
10-Jan-2017NSURLConnection objects allow you to load the contents of a url by providing a URL request object.There are two ways of use of NSURLConnection class one is asynchronous and second is synchronous . In asynchronous connection request create a new thread and performs it download process on new thread so that it not block the main thread .In synchronous connection run on main thread while downloading content and doing its communication .